﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccess.Models
{
    /// <summary>
    /// 推广用户表
    /// </summary>
    public class Promoter
    {
        [XYD.Framework.Key]
        [XYD.Framework.Identity()]
        public int Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string Username { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatTime { get; set; }

        /// <summary>
        /// 等级
        /// </summary>
        public int Grade { get; set; }

        /// <summary>
        /// 一级代理id
        /// </summary>
        public int Promoter_One { get; set; }
        /// <summary>
        /// 二级代理id
        /// </summary>
        public int Promoter_Two { get; set; }

        /// <summary>
        /// 没用
        /// </summary>
        public int Promoter_One_Ratio { get; set; }
        /// <summary>
        /// 没用
        /// </summary>
        public int Promoter_Two_Ratio { get; set; }
        /// <summary>
        /// 服务开始时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 服务结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 产品库数量
        /// </summary>
        public int ProductNum { get; set; }
        
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }


        /// <summary>
        /// 微信openid
        /// </summary>
        public string OpenId { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; }

    }
}
